package com.zte.claa.inficombo.csa.app.service.sapi.ffhost;

import com.zte.claa.inficombo.csa.app.util.SecurityUtil;

public class FFCmdTarget {
	public static final int TARGET_FFTRANSDEV = 1;
	public static final int TARGET_FFHOST = 2;
	public static final int TARGET_FFHOSTPART = 3;
	
	private int targettype = 1;
	
	private int systype = 0;
	private int sysaddr = 0;
	private int parttype = 0;
	private byte[] partaddr;
	
	public FFCmdTarget(){
		
	}

	public int getTargettype() {
		return targettype;
	}

	public void setTargettype(int targettype) {
		this.targettype = targettype;
	}

	public int getSystype() {
		return systype;
	}

	public void setSystype(int systype) {
		this.systype = systype;
	}

	public int getSysaddr() {
		return sysaddr;
	}

	public void setSysaddr(int sysaddr) {
		this.sysaddr = sysaddr;
	}

	public int getParttype() {
		return parttype;
	}

	public void setParttype(int parttype) {
		this.parttype = parttype;
	}

	public byte[] getPartaddr() {
		return partaddr;
	}

	public void setPartaddr(byte[] partaddr) {
		this.partaddr = partaddr;
	}
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("targettype=").append(targettype).append(", ");
		sb.append("systype=").append(systype).append(", ");
		sb.append("sysaddr=").append(sysaddr).append(", ");
		sb.append("parttype=").append(parttype).append(", ");
		sb.append("partaddr=").append(SecurityUtil.parseByte2HexStr(partaddr));
		return sb.toString();
	}
	
}
